package com.chat.mapper;

import com.chat.entity.Room;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * roomMapper 聊天室映射
 *
 */
public interface RoomMapper {
    void insertRoom(Room room);

    Room selectRoomById(int roomId);

    int getCountByAdminIdAndRoomId(int roomId,int adminId);

    List<Room> selectRoomsByUser(@Param(value = "account") String account);

    List<Room> selectRooms();

}
